import {AddRouteRecordRaw} from '../index'
import Layout from '@/views/main.vue'

export default [
    {
        path: '/',
        component: Layout,
        name: 'main',
        meta: {
            title: '首页'
        },
        redirect: {path: '/index'},
        children: [
            {
                path: 'index',
                name: 'index',
                meta: {
                    title: '小程序后台管理'
                },
                component: () => import('@/views/pages/user/index.vue')
            }
        ]
    },
    {
        path: '/museum',
        component: Layout,
        name: 'museum',
        meta: {
            title: '博物馆信息'
        },
        redirect: {path: '/museum/info'},
        children: [
            {
                path: 'info',
                name: 'info',
                meta: {
                    title: '博物馆信息管理'
                },
                component: () => import('@/views/pages/museum/index.vue')
            }
        ]
    },
    {
        path: '/order',
        component: Layout,
        name: 'order',
        meta: {
            title: '预约信息'
        },
        redirect: {path: '/order/record'},
        children: [
            {
                path: 'record',
                name: 'record',
                meta: {
                    title: '预约信息管理'
                },
                component: () => import('@/views/pages/order/index.vue')
            }
        ]
    },
] as AddRouteRecordRaw[]